package work3;

public class InstrumentTest {
    public static void testPlay(Instrument test){
        test.play();
    }
    public static void main(String[] args) {
        Piano piano =new Piano();
        testPlay(piano);
        Violin violin =new Violin();
        testPlay(violin);
    }
}
